//
//  BaseTableViewController.h
//  Utils
//
//  Created by enghou on 2018/1/20.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseTableViewCell.h"
#import "RefreshedTableView.h"
#import "UITableView+XY.h"
#import "LoginViewController.h"
#import "ChooseAddressViewController.h"
@interface BaseTableViewController : UITableViewController<beginRefresh,TotalProtocol>

@property(nonatomic,assign)id<TotalProtocol>theDelete;

@property(nonatomic,strong)NSMutableArray *source;

@property(nonatomic,assign)NSInteger page;

@property(nonatomic,assign)NSInteger totalRecords;

-(void)beginLoading;

-(void)endLoading;

-(void)alertSome:(NSString *)msg;

-(void)alertSome:(NSString *)msg sureAction:(void(^)(void))act;

-(void)alertSome:(NSString *)msg sureAction:(void (^)(void))act cancelAct:(void(^)(void))cancel;

-(void)alertSome:(NSString *)msg sureTitle:(NSString *)sureTitle sureAction:(void(^)(void))sureAct cancelTitle:(NSString *)cancelTitle cancelAct:(void(^)(void))cancel;

-(void)push:(UIViewController *)vc;

-(void)chooseOrg;

@property(nonatomic,assign)BOOL full;//数据满了，无法加载更多，如果是yes，则显示nodata

//刷新成功走的方法
-(void)refreshSuccessWithModel:(BaseModel *)model;

//加载更多成功走的方法
-(void)loadMoreSuccessWithModel:(BaseModel *)model;

-(void)commonFailBlockWithModel:(BaseModel *)model;
@end
